# File: Zopista.py
"""\
Pasta de Profissionais, Empresas e Casos de Uso relativos a Python/Zope/Plone e
sua comunidade.

"""
# Copyright (c) 2005 by TcheZope.org
# Generator: ArchGenXML Version 1.4 devel 4 http://sf.net/projects/archetypes/
#
# GNU General Public Licence (GPL)
# 
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = '''Fabiano Weimar dos Santos <xiru@xiru.org>, Jean Rodrigo Ferri
<jeanrodrigoferri@yahoogroups.com>, Rafahela Bazzanella
<rafabazzanella@yahoo.com.br>'''
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *




from Products.PloneZopista.config import *
##code-section module-header #fill in your manual code here
##/code-section module-header

schema= Schema((
),
)


##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Zopista(BaseBTreeFolder):
    """
    Pasta de Profissionais, Empresas e Casos de Uso relativos a
    Python/Zope/Plone e sua comunidade.
    """
    security = ClassSecurityInfo()
    __implements__ = (getattr(BaseBTreeFolder,'__implements__',()),)


    # This name appears in the 'add' box
    archetype_name             = 'Zopista'

    meta_type    = 'Zopista' 
    portal_type  = 'Zopista' 
    allowed_content_types      = ['Profissional', 'Empresa', 'Oportunidade', 'CasoUso'] 
    filter_content_types       = 1
    global_allow               = 1
    allow_discussion           = 0
    #content_icon               = 'Zopista.gif'
    immediate_view             = 'base_view'
    default_view               = 'base_view'
    typeDescription            = "Zopista"
    typeDescMsgId              = 'description_edit_zopista'

    actions =  (


       {'action':      "string:$object_url/zopista_view",
        'category':    "object",
        'id':          'view',
        'name':        'View',
        'permissions': ("View",),
        'condition'  : 'python:1'
       },
        

       {'action':      "string:$object_url/relacao_profissionais",
        'category':    "object",
        'id':          'relacao_profissionais',
        'name':        'Profissionais',
        'permissions': ("View",),
        'condition'  : 'python:1'
       },
        

       {'action':      "string:$object_url/relacao_empresas",
        'category':    "object",
        'id':          'relacao_empresas',
        'name':        'Empresas',
        'permissions': ("View",),
        'condition'  : 'python:1'
       },
        

       {'action':      "string:$object_url/relacao_casos_uso",
        'category':    "object",
        'id':          'relacao_casos_uso',
        'name':        'Casos de Uso',
        'permissions': ("View",),
        'condition'  : 'python:1'
       },
        

       {'action':      "string:$object_url/relacao_oportunidades",
        'category':    "object",
        'id':          'relacao_oportunidades',
        'name':        'Oportunidades',
        'permissions': ("View",),
        'condition'  : 'python:1'
       },
        

    )

    schema = BaseFolderSchema + \
             schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header


    #Methods

registerType(Zopista,PROJECTNAME)
# end of class Zopista

##code-section module-footer #fill in your manual code here
##/code-section module-footer



